package com.cdh.search.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdh.search.domain.po.Item;
import com.cdh.search.mapper.ItemMapper;
import com.cdh.search.service.IItemService;
import com.heima.dto.ItemDTO;
import com.hmall.common.utils.BeanUtils;

import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;


/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author 虎哥
 */
@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements IItemService {


    @Override
    public List<ItemDTO> queryItemByIds(Collection<Long> ids) {
        return BeanUtils.copyList(listByIds(ids), ItemDTO.class);
    }
}
